package cn.harry.modular.sys.service;

import cn.harry.modular.sys.domain.SysUser;
import cn.harry.modular.sys.domain.SysUserLoginLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 后台用户登录日志表
 *
 * @author honghh Date 2019-10-12 10:55:44 Copyright (C) www.tech-harry.cn
 */
public interface SysUserLoginLogService extends IService<SysUserLoginLog> {

	/**
	 * 清空
	 * @return
	 */
	int clean();

	/**
	 * 导出
	 * @param loginLog
	 * @return
	 */
	List<SysUserLoginLog> getExportList(SysUserLoginLog loginLog);

	/**
	 * 创建用户登陆历史
	 * @param sysUser
	 * @param token
	 * @param expiration
	 * @return
	 */
	void recordLoginInfo(SysUser sysUser, String token, String expiration);

}
